* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    background-color: rgb(249, 250, 251);
}

.main {
    width: 100%;
    height: 50px;

    .nav {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        background-color: #101010;
        min-width: 1080px;
        position: fixed;
        z-index: 9;
        left: 0;
        right: 0;
        height: 50px;
        background: #101010;
        color: hsla(0, 0%, 100%, .7);
        box-shadow: 0 0 4px 0 rgb(0 0 0 / 50%);
        display: flex;
        padding-right: 20px;
        justify-content: space-between;
        align-items: center;

        ul.layui-nav {
            background: #101010;

            >li.layui-nav-item {
                height: 50px;

                a {
                    height: 50px;
                    line-height: 50px;

                    .iconfont {
                        font-size: 20px;
                    }
                }

            }

            >li.layui-nav-item:hover~li.showli {
                height: 100px;
                background-color: #fff;
            }

            li.showli {
                height: 0px;
                overflow: hidden;
                transition: all 1s;
                display: flex;
                justify-content: end;

                a {
                    display: flex;
                    justify-content: end;
                    color: #101010 !important;
                }

                &:hover {
                    height: 100px;
                    background-color: #fff;
                }
            }
        }


    }
}

a.scroll-wrapper {
    position: relative;

    .infinite-container {
        position: absolute;
        top: 60px;
        right: -30px;
        width: 383px;
        height: 140px;
        border-radius: 4px;
        padding-top: 10px;
        display: none;
        background-color: #fff;
        box-shadow: 0 0 1px 0 rgb(0 0 0 / 50%);

        .infinite-spinner {
            width: 100%;
            height: 106px;
            line-height: 106px;
            text-align: center;

            div.prompt {
                font-size: 13px;
                color: #b9c0d0;
            }
        }

        .infinite-fade {
            width: 100%;
            height: 24px;
            line-height: 24px;
            display: flex;
            justify-content: end;
            align-items: center;

            >p.link {
                width: 56px;
                height: 16px;
                line-height: 16px;
                margin: 0 10px;
                font-size: 13px;
                color: #1260ba !important;
                cursor: pointer;
            }
        }

    }
}

ul#layui-nav-span-l {
    width: 264px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .nav-side {
        display: flex;
        align-items: center;
        width: 60px;
        height: 38px;
        padding: 0 0 4px 4px;
        line-height: 38px;
        text-align: center;
        font-size: 24px;
        font-weight: 777;
        color: #b8b8b8;
        cursor: pointer;
        transition: transform .25s;

        &:hover {
            color: #fff;
        }
    }

    .active {
        transform: rotate(-90deg) !important;
    }

    a.logo {
        width: 184px;
        height: 24px;
        margin-left: 20px;


        img {
            width: 184px;
            height: 24px;
            color: #b8b8b8;
        }
    }

    span {
        display: none;
    }
}

ul#layui-nav-span-r.layui-nav {

    li.layui-nav-item.show {
        display: none;
    }

    li.layui-nav-item.leave {
        display: inline-block;
    }

    span.layui-nav-bar {
        display: none !important;
        opacity: 0;
        background-color: transparent;

        &:hover {
            display: none !important;
            opacity: 0;
        }
    }

    .layui-nav-child {
        >dd {
            a {
                display: flex;
                align-items: center;

                .iconfont {
                    margin-right: 20px;
                }
            }
        }
    }
}

.nav-search {
    position: relative;
    height: 40px;
    line-height: 40px;
    animation-delay: .2s;
    transition: all .2s;
    width: 320px;
    margin-left: auto;
    margin-right: 44px;
    display: flex;

    .input-wrap {

        height: 100%;
        flex: 1;
        margin: auto;
        display: flex;
        align-items: center;

        .nav-icon {
            display: flex;
            align-items: center;
            position: absolute;
            z-index: 22;
            left: 15px;
            color: hsla(0, 0%, 100%, .6);
            pointer-events: none;

            .iconfont {
                font-size: 22px;
            }

            span {
                font-size: 14px;
            }
        }

        input#search-input {
            border: none;
            width: 100%;
            height: 100%;
            padding: 0 45px;
            box-sizing: border-box;
            border-radius: 26px;
            outline: 0;
            color: #fff;
            background-color: hsla(0, 0%, 100%, .2);
            transition: all .25s ease-in-out;
            position: absolute;
            top: 0px;
            right: 0px;
        }
    }

    .search-box {
        position: absolute;
        top: 55px;
        left: 0px;
        transition: all .2s;
        width: 790px;
        height: 75px;
        display: none;
        line-height: 75px;
        background-color: #fff;
        box-shadow: 0 2px 4px 0 rgb(0 0 0 / 50%);
        border-radius: 4px;
        font-size: 14px;
        color: #6a728a;
        padding: 0 20px;

    }
}

.sidebar {
    position: fixed;
    height: 100vh;
    width: 235px;
    top: 50px;
    left: 0;
    z-index: 5;

    overflow-x: hidden;
    // ::-webkit-scrollbar {
    //     display: none;
    // }

    transition: width .3s;
    background: #fff;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 6%);

    .layui-nav.layui-nav-tree {
        background-color: #fff;
        width: 235px;
        height: 100%;
        padding-bottom: 180px;

        .layui-nav-bar {
            display: none;
        }

        >.layui-nav-item {
            width: 235px;

            &:hover {
                background-color: #f1f2f5;
            }

            a {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .layui-nav-more {
                    display: none;
                }

                span.side-pic {
                    width: 180px;
                    height: 32px;
                    line-height: 32px;
                    font-size: 14px;
                    color: #212223;
                    display: flex;
                    align-items: center;

                    .iconfont {
                        display: inline-block;
                        font-size: 32px;
                        margin-right: 20px;
                    }

                    >img {
                        width: 32px;
                        height: 32px;
                        border-radius: 5px;
                        margin-right: 20px;
                    }
                }

                .cnt.cnt1 {
                    width: 30px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    border-radius: 10px;
                    color: #fff;
                    background-color: #02dbb4;
                    font-size: 12px;
                }

                .cnt.cnt2 {
                    width: 46px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    font-size: 12px;
                    border-radius: 10px;
                    color: #ffe997;
                    background-color: #101010;
                }
            }
        }
    }

    .sidebarbot {
        width: 235px;
        height: 280px;
        position: absolute;
        bottom: 0;
        padding: 12px 26px;
        background: #fff;

        .app-donw {
            width: 183px;
            height: 44px;
            margin-bottom: 15px;
            display: flex;
            justify-content: start;
            align-items: center;
            font-size: 22px;
            background-color: rgb(185, 193, 213);
            border-radius: 6px;
            color: #fff;
            cursor: pointer;

            &:hover {
                background-color: #6a728a;
            }

            i.iconfont {
                display: inline-block;
                font-size: 22px;
                margin: 0 10px;
            }
        }

        .flex-center {
            width: 183px;
            height: 35px;
            display: flex;
            justify-content: space-between;
            align-items: center;

            i.iconfont {
                display: inline-block;
                width: 24px;
                height: 24px;
                font-size: 24px;
            }
        }

        .app-text {
            width: 183px;
            height: 32px;
            color: #b2bad1;
            margin: 0 0 5px;

            >span {
                display: inline-block;
            }
        }
    }
}

.layui-nav-item {
    a {
        .has-new {
            width: 5px;
            height: 5px;
            background-color: #02dbb4;
            border-radius: 50%;
        }
    }

    dl.layui-nav-child {
        background-color: #fff !important;

        >dd {

            &:hover {
                background-color: #f1f2f5;
            }

            a {
                span.layui-span {
                    width: 180px;
                    height: 32px;
                    line-height: 32px;
                    font-size: 14px;
                    color: #212223;
                    display: flex;
                    align-items: center;
                    margin-left: 50px;

                    .iconfont {
                        display: inline-block;
                        font-size: 20px;
                        margin-right: 10px;
                    }

                }
            }
        }

        .layui-span {
            color: #101010;

        }
    }
}

.focused {
    max-width: 790px;
}